/**
 * 导管
 */
Catheter = Widget.extend({
	ctor:function(){
		this._super();
		this.initCatheter();
		this.setTag(TAG_TUBE);
	},
	initCatheter:function(){
		var catheter = new Button(this, 10, TAG_CATHETER, "#catheter.png", this.callback);
		var move=cc.moveTo(0.6, cc.p(0, -97));
		catheter.setScale(1.3);

		var seq=cc.sequence(cc.delayTime(1),move,cc.callFunc(function() {
			gg.flow.next();
		}, this));
		catheter.runAction(seq);

//		var hand = new Button(this, 9, TAG_RIGHT, "#hand_right.png", this.callback);
//		hand.setPosition(cc.p(30,-31));
//		hand.setScale(0.7);
//		hand.setVisible(false);
//		var part = new Button(this, 11, TAG_RIGHT_PART, "#hand_right_part.png", this.callback);
//		part.setPosition(cc.p(30,-31));
//		part.setScale(0.7);
//		part.setVisible(false);

		this.callNext = cc.callFunc(function(){
			gg.flow.next();
		}, this);
		this.callNext.retain();
	},
	onExit:function(){
		this._super();
		this.callNext.release();
	}
});